projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee6e99e
)
(ehelp): Add g and l to arg list, and use them in the call to `help'.
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 24 Sep 2005 11:03:18 +0000
(11:03 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 24 Sep 2005 11:03:18 +0000
(11:03 +0000)
etc/emacs.py
patch
|
blob
|
history
diff --git
a/etc/emacs.py
b/etc/emacs.py
index 1eba14f67a40a15125410f99cfc2e8cd5e49309f..fcb55a0a205d753c26283c7199bee7b12437435b 100644
(file)
--- a/
etc/emacs.py
+++ b/
etc/emacs.py
@@
-82,11
+82,11
@@
def complete (text, namespace = None):
except:
print '_emacs_out ()'
-def ehelp (name):
- """Get help on string NAME.
+def ehelp (name
, g, l
):
+ """Get help on string NAME
using globals G and locals L
.
First try to eval name for, e.g. user definitions where we need
the object. Otherwise try the string form."""
- try: help (eval (name))
+ try: help (eval (name
, g, l
))
except: help (name)
def eimport (mod, dir):